package com.xuecheng.media.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "content-api" ,contextId = "courseBaseInfoServiceClient")
public interface CourseBaseInfoServiceClient {

    @PostMapping("/content/course/{courseId}/picture")
    Boolean updateCoursePicture( @PathVariable("courseId") Long courseId,  @RequestParam("picUrl") String picUrl);

    @PostMapping("/content/course/courseIdExtractMd5/{courseId}")
    Map<String,String> CourseIdExtractMd5(@PathVariable("courseId") Long courseId);

}
